import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '名称',
    align: "center",
    dataIndex: 'certName'
  },
  {
    title: '资质证明',
    align: "center",
    dataIndex: 'certFile'
  },
  {
    title: '资质考核',
    align: "center",
    dataIndex: 'result'
  },
  {
    title: '用户id',
    align: "center",
    dataIndex: 'userid'
  },
  {
    title: '类型',
    align: "center",
    dataIndex: 'certType'
  },
];
//荣誉证书数据
export const columnsHonor: BasicColumn[] = [
  {
    title: '荣誉名称',
    align: "center",
    dataIndex: 'certName',
    edit: true,
  },
  {
    title: '资质证明',
    align: "center",
    dataIndex: 'certFile',
    slots: { customRender: 'uploadSlot' },
  },

];
//资质证书数据
export const columnsFla: BasicColumn[] = [
  {
    title: '资质名称',
    align: "center",
    dataIndex: 'certName',
    // edit: true,
    sorter: {},
    slots: { customRender: 'qualifications' },
    maxWidth:1
  },
  {
    title: '资质证明',
    align: "center",
    dataIndex: 'certFile',
     slots: { customRender: 'uploadSlotTwo' },
  },
  {
    title: '资质考核',
    align: "center",
    dataIndex: 'result'
  },

];
//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '名称',
    field: 'certName',
    component: 'Input',
  },
  {
    // label: '资质证明',
    // field: 'certFile',
    // component: 'Input',
    field:'uploadFileMax',
    component:'JUpload',
    label:'上传文件',
    componentProps:{maxCount:3},
  },
  {
    label: '资质考核',
    field: 'result',
    component: 'Input',
  },
  {
    label: '用户id',
    field: 'userid',
    component: 'Input',
  },
  {
    label: '类型',
    field: 'certType',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
